<include file="public@header"/>
<link rel="stylesheet" href="__ROOT__/static/layui/css/layui.css">
<script src="__ROOT__/static/layui/layui.js"></script>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('AdminPack/index')}">套餐列表</a></li>
        <li  class="active"><a href="#">编辑</a></li>
    </ul>
    <div style="width: 500px;">
        <form class="layui-form" action="{:url('AdminPack/editPost')}" style="margin-top: 20px;">
            <input type="text" name="id" value="{$pack[0]['pack_id']}" hidden>
            <div class="layui-form-item">
                <label class="layui-form-label">套餐名</label>
                <div class="layui-input-block">
                    <input type="text" name="pack_name" value="{$pack[0]['pack_name']}" required  lay-verify="required" placeholder="请输入套餐名" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">价格</label>
                <div class="layui-input-block">
                    <input type="text" name="price" required value="{$pack[0]['price']}"  lay-verify="required" placeholder="请输入价格" autocomplete="off" class="layui-input">
                </div>
            </div>

            <volist name="pack" id="vo">
                <div class="layui-form-item">
                    <label class="layui-form-label">{$vo.item_name}</label>
                    <div class="layui-input-block">
                        <input type="text" name="ids[{$vo.id}]" required value="{$vo.number}"  lay-verify="required" placeholder="请输入数量" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </volist>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>

</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;

    });
</script>
</body>
</html>